Skip to content

PII redaction + Android uiautomator2 widget tree + iOS XCUITest + AC_run_agent#198

Merged
JE-Chen merged 8 commits into
mainfrom
dev
May 25, 2026
Merged

PII redaction + Android uiautomator2 widget tree + iOS XCUITest + AC_run_agent#198
JE-Chen merged 8 commits into
mainfrom
dev

Conversation

@JE-Chen
Copy link
Copy Markdown
Member

@JE-Chen JE-Chen commented May 25, 2026

Summary

  • Screenshot PII redaction: utils/redaction/ with RedactionEngine, POLICY_OFF/MODERATE/STRICT, detectors for email / credit card / SSN / phone (via supplied OCR tokens) and password-field bbox (via accessibility tree), plus forced regions. Env-var policy (JE_AUTOCONTROL_REDACTION). Wired through AC_redact_screenshot + ac_redact_screenshot + façade re-exports.
  • Android uiautomator2 widget tree: android/client.py + android/find.py add the widget-aware path (UIAutomatorDevice, find_element, click_element, dump_hierarchy) on top of the existing adb shell backend. New executor commands AC_android_find_element/click_element/dump_hierarchy and matching MCP tools.
  • iOS XCUITest backend (new platform): ios/ package with IOSDevice (lazy facebook-wda client), tap/long_press/swipe/type_text/press_key, screenshot/screen_size, find_element/click_element/dump_source. Seven new AC_ios_* executor commands and seven ac_ios_* MCP tools.
  • AgentLoop JSON + MCP wiring (from 1ca504e): AC_run_agent + ac_run_agent finally expose the closed-loop agent to the JSON action language and the MCP tool registry.

Test plan

  • test_redaction.py — engine, detectors, executor, MCP, façade, Qt-free import
  • test_android_uiautomator.py — selector translation, executor + MCP, optional-dep handling
  • test_ios_xcuitest.py — tap/swipe/type/screenshot/find/click/dump round-trip, optional-dep handling
  • test_agent_executor_mcp_wiring.pyAC_run_agent + ac_run_agent round-trip with FakeAgentBackend
  • Sonar / Codacy green on PR

@codacy-production
Copy link
Copy Markdown

codacy-production Bot commented May 25, 2026

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 234 complexity · 22 duplication

Metric Results
Complexity 234
Duplication 22

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@sonarqubecloud
Copy link
Copy Markdown

@JE-Chen JE-Chen merged commit 1c9e0da into main May 25, 2026
29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant